package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.data.request.ReqTeacherList;
import com.example.entity.Teacher;
import com.example.utils.R;

/**
 * Author:yanghua
 * Date:2023/10/8 8:30
 */
public interface TeacherService extends IService<Teacher>{
    /**
     * 添加一个老师
     * @param teacher
     * @return
     */
    R addTeacher(Teacher teacher);

    /**
     * 按id删除教师
     * @param id
     * @return
     */
    R deleteTeacher(Long id);

    /**
     * 修改教师信息
     * @param teacher
     * @return
     */
    R updateTeacher(Teacher teacher);

    /**
     * 条件查询教师信息
     * @param reqTeacherList
     * @return
     */
    R getTeacherList(ReqTeacherList reqTeacherList);
}
